<html>
<head><META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<title>Cliente</title>
<script type="text/javascript" src="lytebox.js"></script>
<style type="text/css">
body{	color:#fff;	background-color:#000000;	font: .8em "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;  font-weight: normal}
a {		font-size: 100%;		font-weight: bold;		text-decoration: none;		color: #fff;}
a.code{font-size:50%; font-weight:normal; cursor:hand}
a:hover {		color: #fff;		}	
ol{	margin:0;	padding: 0 1em;}
titu{font-size: 140%}
#TicketContainer{width:800px}
#TicketHeader {  position : absolute;  left : 10px;  top : 0px;  width : 640px;  padding-left : 0px;  z-index : 3;  color : #fff;  padding : 3px;}
#TicketLines {  position : absolute;  left : 0;  width : 640px;  margin-left : 0px;  margin-top : 0px;  color : #fff;  padding : 3px;}
table{	color:#FFF;	background:#000 url(full-sepmarronN130.png)  top left;	border:1px solid #000;	border-collapse:collapse;	width:430px;}
tdcodigo{font-size: 60%}
thead{}
thead th{	padding:1em 0.1em .1em; 	border-bottom:1px dotted #FFF; 	font-size:120%; 	text-align:left;}
thead tr{}
td, th{	background:transparent;	padding:.2em .2em;	font-size: .8em}
tbody tr{}
tbody tr.odd td{	background:transparent url(tr_bg.png) repeat top left;}
tfoot{}
tfoot td{	padding-top:1.1em;	padding-bottom:1.2em;	padding-left: 0.5em;	font-size: 150%}
td tdcodigo{	font-size: 80%}
tfoot tr{}
* html tr.odd td{	background:none;	filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='tr_bg.png', sizingMethod='scale');}
</style>
<script language="javascript">
function LoadData(){
	document.forms.CTK.ticketN.value	=	window.parent.document.forms[0].ticketN.value;
	document.forms.CTK.Cerrado.value	=	window.parent.document.forms[0].Cerrado.value;
	document.forms.CTK.Client.value		=	window.parent.document.forms[0].Client.value;
	document.forms.CTK.Vend.value		=	window.parent.document.forms[0].Vend.value;
	document.forms.CTK.Tienda.value		=	window.parent.document.forms[0].Tienda.value;
	var fpCHK 						= 	getFP() ;
	document.forms.CTK.FP.value 	= 	fpCHK ;
}
function getFP(){
	var j=0; var fp = window.parent.document.forms[0].FP;
	j = fp.length;
	for (i=0; i<j; i++){
		if(fp[i].checked) var fpCHK = window.parent.document.forms[0].FP[i].value
	}
	getFP	=	fpCHK;
	return fpCHK}

function putdir(cli){
	var vende	=	document.forms.CTK.Vend.value;
	var clie	=	cli;
	var	ticketN	=	document.forms.CTK.ticketN.value;
	var FP		=	document.forms.CTK.FP.value;
	parent.location.href ='TPV_ticket.asp?ticketN=' + ticketN + '&Client=' + clie + '&Vend=' + vende + '&FP=' + FP
	return true}
</script>
</head><body style="background-color:black"  onload="LoadData();"><form id="CTK" name="CTK" ><input type="hidden" 
					id="ticketN" name="ticketN" value=""><input type="hidden" 
					id="FP" name="FP" value=""><input type="hidden" 
					id="Client" name="Client" value=""><input type="hidden" 
					id="Tienda" name="Tienda" value=""><input type="hidden" 
					id="Vend" name="Vend" value=""><input type="hidden" 
					id="Cerrado" name="Cerrado" value=""><table  id="tblGrid" ><col id="Codigo"><col id="Nombre">
			<col id="Telefono">
			<thead>
				<tr>
					<th>C&oacute;d.</th>
					<th>Nombre&nbsp;&nbsp;</th>
					<th>Tel.</th>
				</tr>
			</thead>
			<tbody><%
			 Set conn1 = Server.CreateObject("ADODB.Connection")
					conn1.Open "ebleTPV"

					set rs1=Server.CreateObject("adodb.Recordset")
			        sql= "SELECT CODIGO, NOMBRE, NIF, telefono FROM clientesTiendas ORDER BY NOMBRE"
			        rs1.Open sql,conn1,3,3
			        Do While Not rs1.EOF
			        	CODIGO=rs1("codigo") & ""
			        	NOMBRE = rs1("nombre") & ""
			        	NIF = rs1("NIF") & ""
			        	telefono = rs1("telefono") & ""
			        	email= "email" & ""
                %><tr>
					<td><a  href="#" onclick="javascript:putdir('<%=CODIGO%>');" ><%=CODIGO%></a></td>
					<td><%=NOMBRE %></td>
					<td><%=telefono%></td>
				</tr>
		        <%  rs1.MoveNext
		            Loop
		            rs1.Close
		         %></table></form>
</body>
</html>
